import { Component } from "@angular/core";
import { NativeStorage } from '@ionic-native/native-storage';
import { TranslateService } from '@ngx-translate/core';
@Component({
    selector: 'page-pay',
    templateUrl: 'withdraw.html',
})

export class WithdrawPage{
    constructor(
        private stroge:NativeStorage,
        private translate: TranslateService
    ){
        translate.setDefaultLang('en')
    }
    ionViewDidEnter(){
        this.stroge.getItem('lang').then(res=>{
            this.translate.use(res)
        })
    }
}